package sennetworkserver;

public class TrafficLightMessage {
	
	private int laneId;
	private int state;
	
	public TrafficLightMessage(int laneId, int state) {
		this.laneId = laneId;
		this.state = state;
	}
	
	public byte[] toByte() {
		byte[] message = new byte[2];
		message[0] = (byte) laneId;
		message[1] = (byte) state;
		return message;
	}

}
